// 角色
export interface RoleChildrenList {
  authorityId: string
  authorityName: string
  authorityType: number
  childrenList?: RoleChildrenList[]
  createDate: string
  functionUrl: string
  parentAuthorityId: string
  sort: number
  updateDate: string
}
export interface RoleRecord {
  createDate: string
  roleDescribe: string
  roleId: string
  roleName: string
  updateDate: string
  label?: string
  value?: string
  userNumber: number
  authorityList: RoleChildrenList[]
}

// 用户
export interface UserRecord {
  email: string
  phoneNumber: string
  rolePermit: RoleRecord[]
  userAccount: string
  userId: string
  userName: string
  userStatus: string | number
}

export interface UserDelRecord {
  type: string
  record: Partial<UserRecord>
  checkedDelKeys: string[] | number[]
  checkedDelList: UserRecord[]
}

export interface UserAddRecord {
  type: string
  userId: string
  record: Partial<UserRecord>
  viewRole: RoleRecord[]
  roleList: RoleRecord[]
  roleIdList: string[] | number[]
}

// 权限
export interface AuthorityRecord {
  authorityId: string
  authorityName: string
  authorityType: number
  createDate: string
  functionUrl: string
  parentAuthorityId: string
  sort: number
  updateDate: string
  children: any[]
}

// 操作日志
export interface LogRecord {
  createDate: string
  id: number
  ip: string
  method: string
  requestBodys: string
  requestName: string
  returnJson: string
  type: string
  uri: string
  userAcct: string
}
// 渠道管理
export interface ChannelRecord {
  channelCode: string
  channelName: string
  switchFlag: number
  createBy: string
  createTime: string
  customerServiceMobile: string
  customerServiceUrl: string
  merchantContactInfo: string
  merchantSlogans: string
  sptLogo: string
  ycLogo: string
}
